package com.jintian.smart.kernel.module.impl;

import com.jintian.smart.kernel.module.Model;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ModelApplicationContext extends AnnotationConfigApplicationContext {
	private Model model;

	public void setModel(Model model) {
		this.model = model;
	}

	public Model getModel() {
		return this.model;
	}

	@Override
	public String getApplicationName() {
		return this.model.getName();
	}

	@Override
	public String getId() {
		return this.model.getName();
	}
}
